import gleam/option.{None, Some}
import gu

pub fn main() {
   let demo =
      gu.zenity
      |> gu.set_title("gu_enter_name")
      |> gu.new_entry(
         text: Some("What's Your Name?"),
         entry_text: None,
         hide_text: False,
      )
      |> gu.show(err: False)
   let name = case demo {
      Ok(val) -> gu.parse(val)
      Error(_) -> "Unknown"
   }
   gu.zenity
   |> gu.new_info()
   |> gu.set_title("gu_enter_name")
   |> gu.set_text("Hello, " <> name <> "!")
   |> gu.show(True)
}

